import { getAction, deleteAction, putAction, postAction, postParamsAction, httpAction } from '@/api/manage'
import Vue from 'vue'
import {UI_CACHE_DB_DICT_DATA } from "@/store/mutation-types"


//合同生效
const postTakeEffect= (params)=>postParamsAction("/zcgl/leaseContractInfo/takeEffect",params);
//合同续签
const postRenew = (params)=>postParamsAction("/zcgl/leaseContractInfo/renew",params);
//合同退租
const postSurrender = (params)=>postParamsAction("/zcgl/leaseContractInfo/surrender",params);
//合同终止
const postTermination = (params)=>postParamsAction("/zcgl/leaseContractInfo/termination",params);
//合同结束
const postTerminate = (params)=>postParamsAction("/zcgl/leaseContractInfo/terminate",params);
//根据ID查询
const queryContractById = (params)=>getAction("/zcgl/leaseContractInfo/queryById",params);
//合同打印查询
const queryPrintById = (params)=>getAction("/zcgl/leaseContractInfo/queryPrintById",params);
//更新合同打印模版
const updatePrintTemplateId = (params)=>postAction("/zcgl/leaseContractInfo/updatePrintTemplateId",params);
//更新合同打印信息
const updatePrint = (params)=>postAction("/zcgl/leaseContractInfo/updatePrint",params);

export {
  postTakeEffect,
  postRenew,
  postSurrender,
  postTermination,
  queryContractById,
  queryPrintById,
  postTerminate,
  updatePrintTemplateId,
  updatePrint,
}



